package com.boot3.dao.impl;

import com.boot3.dao.UserDao;
import com.boot3.pojo.User;
import org.springframework.stereotype.Repository;

/**
 * @author wzm
 * @create 2023-11-30 10:23
 * project_name:web2310
 * @Description
 */
//@Component //交给ioc容器管理
@Repository //加入ioc容器的对象是dao层对象 mybatis以后不用这个
public class UserDaoImpl implements UserDao {
    @Override
    public User selectUserById(Integer id) {
        //模拟了从数据库获取信息
        return new User(id,"王二狗","12346");
    }
}
